home *** CD-ROM | disk | FTP | other *** search
/ Internet Tools (InfoMagic) / Internet Tools.iso / samba / HINTS.txt < prev    next >
Text File  |  1995-04-24  |  8KB  |  227 lines

  1. Here are some random hints that you may find useful. These really
  2. should be incorporated in the main docs someday.
  3.  
  4.  
  5. ----------------------
  6. HINT: Always test your smb.conf with testparm before using it
  7.  
  8. If your smb.conf file is invalid then samba will fail to load. Run
  9. testparm over it before you install it just to make sure there aren't
  10. any basic syntax or logical errors.
  11.  
  12.  
  13. ----------------------
  14. HINT: Try printing with smbclient first
  15.  
  16. If you have problems printing, test with smbclient first. Just connect using 
  17. "smbclient '\\server\printer' -P" and use the "print" command.
  18.  
  19. Once this works, you know that Samba is setup correctly for printing,
  20. and you should be able to get it to work from your PCs.
  21.  
  22. This particularly helps in getting the "print command" right.
  23.  
  24.  
  25. ----------------------
  26. HINT: Mount cdroms with conv=binary
  27.  
  28. Some OSes (notably Linux) default to auto detection of file type on
  29. cdroms and do cr/lf translation. This is a very bad idea when use with
  30. Samba. It causes all sorts of stuff ups.
  31.  
  32. To overcome this problem use conv=binary when mounting the cdrom
  33. before exporting it with Samba.
  34.  
  35.  
  36. ----------------------
  37. HINT: Convert between unix and dos text formats
  38.  
  39. Jim barry has written an excellent drag-and-drop cr/lf converter for
  40. windows. Just drag your file onto the icon and it converts the file.
  41.  
  42. Get it from
  43. ftp://nimbus.anu.edu.au/pub/tridge/samba/contributed/fixcrlf.zip
  44.  
  45.  
  46. ---------------------- 
  47. HINT: Use the same username/password on clients as on the unix server.
  48.  
  49. This makes lots of things work better. It overcomes the fundamental
  50. problem that some clients (notably WfWg) don't pass usernames in "net
  51. use" type operations. 
  52.  
  53. Your WfWg username is specified when you login to your PC.
  54.  
  55. It's probably even worth changing your login names on the PCs to match
  56. your unix names so you can do this. You can get things to work without
  57. doing this, but life will be harder.
  58.  
  59. If you can't make your passwords the same then it's still worth making
  60. your username the same.
  61.  
  62.  
  63. -----------------------
  64. HINT: Use "security = user" in [global]
  65.  
  66. If you have followed the previous hint and have the same username on
  67. your unix server as your PCs then choose "security = user" in the
  68. [global] section of smb.conf. 
  69.  
  70. This will mean your password is checked only when you first connect,
  71. and subsequent connections to printers, disks etc will go more
  72. smoothly and much faster.
  73.  
  74. The main problem with "security = user" if you use WfWg is that you
  75. will ONLY be able to connect as the username that you log into WfWg
  76. with. This is because WfWg silently ignores the password field in the
  77. connect drive dialog box if the server is in user security mode.
  78.  
  79. ------------------------
  80. HINT: Make your printers not "guest ok"
  81.  
  82. If your printers are not "guest ok" and you are using "security =
  83. user" and have matching unix and PC usernames then you will attach to
  84. the printer without trouble as your own username. This will mean you
  85. will be able to delete print jobs (in 1.8.06 and above) and printer
  86. accounting will be possible.
  87.  
  88.  
  89. -----------------------
  90. HINT: Use a sensible "guest" account
  91.  
  92. Even if all your services are not available to "guest" you will need a
  93. guest account. This is because the browsing is done as guest. In many
  94. cases setting "guest account = ftp" will do the trick. Using the
  95. default guest account or "guest account = nobody" will give problems on
  96. many unixes. If in doubt create another account with minimal
  97. privilages and use it instead. Your users don't need to know the
  98. password of the guest account.
  99.  
  100.  
  101.  
  102. -----------------------
  103. HINT: Use the latest TCP/IP stack from microsoft if you use Windows
  104. for workgroups.
  105.  
  106. The early TCP/IP stacks had lots of bugs.
  107.  
  108. Microsoft has released an incremental upgrade to their TCP/IP 32-Bit
  109. VxD drivers.  The latest release can be found on their ftp site at
  110. ftp.microsoft.com, located in /peropsys/windows/public/tcpip/wfwt32.exe.
  111. There is an update.txt file there that describes the problems that were
  112. fixed.  New files include WINSOCK.DLL, TELNET.EXE, WSOCK.386, VNBT.386,
  113. WSTCP.386, TRACERT.EXE, NETSTAT.EXE, and NBTSTAT.EXE.
  114.  
  115.  
  116. -----------------------
  117. HINT: nmbd can act as a "WINS" server
  118.  
  119. By default SMB clients use broadcasts to find shares. Recent clients
  120. (such as WfWg) can use a "wins" server instead, whcih reduces your
  121. broadcast traffic and allows you to find names across routers.
  122.  
  123. Just point your WfWg, Win95 and NT clients at the Samba box in the WINS option.
  124.  
  125.  
  126. -----------------------
  127. HINT: you may need to delete your .pwl files when you change password.
  128.  
  129. WfWg does a lousy job with passwords. I find that if I change my
  130. password on either the unix box or the PC the safest thing to do is to
  131. delete the .pwl files in the windows directory. The PC will complain about not finding the files, but will soon get over it, allowing you to enter the new password.
  132.  
  133. If you don't do this you may find that WfWg remembers and uses the old
  134. password, even if you told it a new one.
  135.  
  136. Often WfWg will totally ignore a password you give it in a dialog box.
  137.  
  138.  
  139. -----------------------
  140. HINT: Getting WfWg to be a master browser
  141.  
  142. Apart from exporting a drive, you should be able to get WfWg to be a
  143. master browser by using:
  144.  
  145. [Network]
  146. MaintainServerList=YES
  147.  
  148. in the system.ini file
  149.  
  150.  
  151. ----------------------
  152. HINT: Using MS Access
  153.  
  154. Here are some notes on running MS-Access on a Samba drive from Stefan 
  155. Kjellberg <stefank@esi.com.au>
  156.  
  157. 1. Opening a database in 'exclusive' mode does NOT work. Samba ignores
  158.    r/w/share modes on file open.
  159.  
  160. 2. Make sure that you open the database as 'shared' and to 'lock modified
  161.    records'
  162.  
  163. 3. Of course locking must be enabled for the particular share (smb.conf)
  164.  
  165.  
  166. ---------------------
  167. HINT: password cacheing in WfWg
  168.  
  169. Here is a hint from michael@ecel.uwa.edu.au (Michael Simmons):
  170.  
  171. In case people where not aware. There is a program call admincfg.exe
  172. on the last disk (disk 8) of the WFW 3.11 disk set.  To install it
  173. type EXPAND A:\ADMINCFG.EX_ C:\WINDOWS\ADMINCFG.EXE Then add an icon
  174. for it via the "Progam Manager" "New" Menu.  This program allows you
  175. to control how WFW handles passwords.  ie disable Password Caching etc
  176. for use with "security = user"
  177.  
  178.  
  179. --------------------
  180. HINT: file descriptor limits
  181.  
  182. If you have problems with the limits on the number of open files you
  183. can edit local.h to fix it.
  184.  
  185. --------------------
  186. HINT: HPUX initgroups() problem
  187.  
  188. here is a hint from Frank Wales [frank@arcglade.demon.co.uk]:
  189.  
  190. HP's implementation of supplementary groups is, er, non-standard (for
  191. hysterical reasons).  There are two group files, /etc/group and
  192. /etc/logingroup; the system maps UIDs to numbers using the former, but
  193. initgroups() reads the latter.  Most system admins who know the ropes
  194. symlink /etc/group to /etc/logingroup (hard link doesn't work for reasons
  195. too stupid to go into here).  initgroups() will complain if one of the
  196. groups you're in in /etc/logingroup has what it considers to be an invalid
  197. ID, which means outside the range [0..UID_MAX], where UID_MAX is (I think)
  198. 60000 currently on HP-UX.  This precludes -2 and 65534, the usual 'nobody'
  199. GIDs.
  200.  
  201. Perhaps you could suggest to users that, if they encounter this problem,
  202. they make sure that the programs that are failing to initgroups() be
  203. run as users not in any groups with GIDs outside the allowed range.
  204.  
  205. This is documented in the HP manual pages under setgroups(2) and passwd(4).
  206.  
  207.  
  208. ---------------------
  209. HINT: Patch your SCO system
  210.  
  211. If you run SCO Unix then you may need to get important TCP/IP patches
  212. for Samba to work correctly. Try 
  213.  
  214. Paul_Davis@mindlink.bc.ca writes:
  215.  
  216.   I was having problems with Accpac using 1.9.02 on SCO Unix.  One
  217.   posting function reported corrupted data.  After installing uod385a,
  218.   the problem went away (a restore from backup and then another
  219.   run-thru).
  220.  
  221.   It appears that the uod385a update for SCO may be fairly important for
  222.   a lot of different DOS and Windows software under Samba.
  223.  
  224.   uod385a can be found at ftp.sco.com /SLS/uod385a.Z and uod385a.ltr.Z.
  225.  
  226.  
  227.